package crp.core.academic.app;

import crp.core.academic.domain.services.AcademicSearcher;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;

@ApplicationScoped
public class AcademicService {
    private final Instance<AcademicSearcher> searcher;

    @Inject
    public AcademicService(Instance<AcademicSearcher> searcher) {
        this.searcher = searcher;
    }

    public AcademicSearcher searcher() {
        return searcher.get();
    }
}
